module.exports = [
    {
        label: "electron",
        submenu: [
            {
                label: 'item 1',
                submenu: [
                    {
                        label: "sub item2"
                    }
                ]
            }
        ]
    },
    {//系统方法规则实现
        label: 'Edit',
        submenu: [
            { role: 'undo' },
            { role: 'redo' },
            { role: 'copy' },
            { role: 'paste' }
        ]
    },
    {
        label: '操作',
        submenu: [
            {
                label: "切换开发者模式",
                role: 'toggleDevTools'
            },
            {
                label: '切换全屏',
                role: 'toggleFullScreen'
            },
            { // 定义自己的带操作的菜单
                label: "Greet",
                click: () => {
                    console.log("welcome to Electrom")
                },
                accelerator: 'Shift+Alt+G'   //组合键
            }
        ]
    }
]